@import '../../../styles/variables';

.list_container{
  padding: 12px 20px 0 20px;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  .delete{
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    transition: .3s;
  }
  &:hover{
    background-color: rgba(244, 245, 245,.6);
  }
  &:hover .delete{
    opacity: 1;
  }
  .list_title{
    display: flex;
    div{
      font-size: 13px;
      color: $color-text;
      cursor: pointer;
    }
    .username{
      color: $secondary-text;
      line-height: 22px;
      word-break: break-all;
      &:hover{
        color: $color-theme;
      }
    }
    .date{
      position: relative;
      padding: 0 18px;
      &::before{
        content: '';
        position: absolute;
        width: 1px;
        height: 14px;
        background: #e5e6eb;
        top: 50%;
        transform: translateY(-50%);
        left: 9px;
      }
      &::after{
        content: '';
        position: absolute;
        width: 1px;
        height: 14px;
        background: #e5e6eb;
        top: 50%;
        transform: translateY(-50%);
        right: 9px;
      }
    }
    .categories{
      border-right: none;
      display: flex;
      .categories_item{
        margin-right: 15px;
        position: relative;
        &::after{
          content: '';
          width: 3px;
          height: 3px;
          position: absolute;
          border-radius: 50%;
          background-color: #86909c;
          top: 50%;
          margin-top: -1.5px;
          right: -8px;
        }
        &:last-child::after{
          background-color: transparent;
        }
        &:hover{
          color: $color-theme;
        }
      }
    }
  }
  .list_content{
    display: flex;
    // justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e5e6eb;
    .content_text{
      flex: 1 1 auto;
      width:calc(100% - 144px);
      .title_row{
        overflow: hidden;
        white-space: nowrap;
        text-overflow:ellipsis;
        color: $color-header;
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        line-height: 2.4rem;
      }
      .abstract{
        color: $color-text !important;
        font-size: 1.3rem;
        line-height: 2.2rem;
        overflow:hidden; 
        text-overflow:ellipsis;
        white-space:nowrap;
        margin-bottom: 0.8rem;
      }
      .content_footer{
        display: flex;
        .heartFilled{
          color: $color-theme;
          .num{
            color: $color-theme;
          }
        }
        div{
          display: flex;
          align-items: center;
          margin-right: 1rem;
          color: #8f969c; 
          font-size: 1.5rem;
          &:hover{
            color: $color-theme;
            .num{
              color: $color-theme
            }
          }
          .num{
            padding-left: 4px;
            font-size: 1.3rem;
            color: #4e5969;
            user-select: none;
          }
          
        }
      }
    }
    .content_img{
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-left: 2.4rem;
      img{
        border-radius: 0.2rem;
      }
    }
  }
  
}